/*
 * SetTireConf_SetTireConf_Transition.cpp
 *
 * Transition from Set Tire Conf mode state to itself
 *
 * Author: Zachary Masiello
 * Author: Peter-John Rowe
 */

#include "SetTireConf_SetTireConf_Transition.h"
#include "Cyclometer.h"

SetTireConf_SetTireConf_Transition::SetTireConf_SetTireConf_Transition(Cyclometer* cyclo,IState* defNextState,int id) {
	context = cyclo;
	nextState = defNextState;
	eventID = id;
}

SetTireConf_SetTireConf_Transition::~SetTireConf_SetTireConf_Transition() {
	// TODO Auto-generated destructor stub
}

IState* SetTireConf_SetTireConf_Transition::accept() {
	action();
	return nextState;
}

bool SetTireConf_SetTireConf_Transition::guard() {
	return true;
}

void SetTireConf_SetTireConf_Transition::action() {
	context->incrementTireSize();
}
